package com.secret.chain.secretchain.mapper;

import com.secret.chain.secretchain.domain.entity.Address;
import com.secret.chain.secretchain.domain.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface UserMapper {
    @Select("select * from user where openid = #{openid}")
    User getByOpenid(String openid);

    void insert(String hash,String address);

    @Select("select * from chain_user where id = #{id}")
    User queryById(Integer id);

    void updateUserInfo(Address address);
}
